package cn.arikeky.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-11-23
 */
@TableName("t_move_user")
public class MoveUser extends Model<MoveUser> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 用户编号
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 电影票编号
     */
    @TableField("movie_ticket_id")
    private Long movieTicketId;
    /**
     * 电影票数量
     */
    private Integer count;
    /**
     * 已使用的数量
     */
    private Integer use;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMovieTicketId() {
        return movieTicketId;
    }

    public void setMovieTicketId(Long movieTicketId) {
        this.movieTicketId = movieTicketId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getUse() {
        return use;
    }

    public void setUse(Integer use) {
        this.use = use;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MoveUser{" +
        ", id=" + id +
        ", userId=" + userId +
        ", movieTicketId=" + movieTicketId +
        ", count=" + count +
        ", use=" + use +
        "}";
    }
}
